﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace CustomsDocumentOA.Project.CusDocument
{
    //*********************************************
    //
    //数据表（CDOA_CustomerDetail）：客户关联附件表
    //
    //作者：陈辉平
    //
    //日期（CreateDate）：2021-03-15
    //
    //*********************************************
    [Table("CDOA_CustomerDetail")]
    public class CDOA_CustomerDetail : Entity<long>, IHasCreationTime, ICreationAudited,IModificationAudited
    {
        /// <summary>
        /// 创建时间，接口IHasCreationTime
        /// </summary>
        public DateTime CreationTime { get; set; }
        /// <summary>
        /// 创建人，接口ICreationAudited
        /// </summary>
        public long? CreatorUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public long? LastModifierUserId { get ; set ; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? LastModificationTime { get; set; }
        /// <summary>
        /// 客户主表ID，关联主表
        /// </summary>
        [Required]
        public int cCustomerID { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        [MaxLength(100)]
        public string cTitle { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        [MaxLength(500)]
        public string cContent { get; set; }
        /// <summary>
        /// 附件地址
        /// </summary>
        [MaxLength(200)]
        public string cFileAddress { get; set; }
        /// <summary>
        /// 附件码（1，2，3，4，5）
        /// </summary>
        public int Type { get; set; }
    }
}
